package own.test.service.impl;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.listener.MessageListener;

public class KafkaMessageListenerImpl implements MessageListener<String,String> {

	@Override
	public void onMessage(ConsumerRecord<String, String> data) {
		System.out.println(data.topic()+"来信："+data.value());
	}
}
